import { getSongs } from '../../request/api.js'

export default {
  namespaced: true,
  state() {
    return {
      musicIdList: [], //播放列表
      musicTotal: 0, //总时长
      musicCurrent: 0, //当前时长
      play: false, //播放状态
    }
  },

  mutations: {
    InitMusicIdList(state, list) {
      state.musicIdList = list
    },

    setMusicTotal(state, time) {
      state.musicTotal = time
    },

    setMusicCurrent(state, time) {
      state.musicCurrent = time
    },

    setPlay(state, paly) {
      state.play = paly
    },
  },

  actions: {},
}
